package edu.xpu.compute.recommend.fontpage.admin;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestParam;

import edu.xpu.compute.recommend.common.annotation.Router;

/**
 * 图书信息前端路由路径
 */
@Controller
@Router(value="web/book")
public class SysBookRouter {
	/**
	 * 图书列表
	 * @return
	 */
	@Router(value="list")
	public String bookList() {
		return "admin/book/bookList";
	}
	/**
	 * 新增图书
	 * @return
	 */
	@Router(value="add")
	public String bookAdd(@RequestParam(value="id", required=false) Long id, ModelMap modelMap) {
		modelMap.addAttribute("id", id);
		return "admin/book/bookAdd";
	}
	/**
	 * 图书详情
	 * @return
	 */
	@Router(value="detail")
	public String bookDetail(@RequestParam(value="id") Long id, ModelMap modelMap) {
		modelMap.addAttribute("id", id);
		return "admin/book/bookDetail";
	}
	/**
	 * 图书详情
	 * @return
	 */
	@Router(value="image")
	public String bookImage(@RequestParam(value="id") Long id, ModelMap modelMap) {
		modelMap.addAttribute("id", id);
		return "admin/book/bookImage";
	}

}
